import request from '@/utils/request';

// 总体进度完成情况
export function getProgress(params) {
  return request({
    url: '/steel-arch/client/main/finishSchedule',
    params,
  });
}

// 生产任务完成情况
export function getTask(params) {
  return request({
    url: '/steel-arch/client/main/taskFinishSchedule',
    params,
  });
}

// 各产品生产占比
export function getProduct(params) {
  return request({
    url: '/steel-arch/client/main/prodFinishSchedule',
    params,
  });
}

// 每年各月份生产情况
export function getMonth(params) {
  return request({
    url: '/steel-arch/client/main/prodYearTotal',
    params,
  });
}

// 查询月份每天产量情况
export function getDay(params) {
  return request({
    url: '/steel-arch/client/main/prodMonthTotal',
    params,
  });
}

// 设备故障/维护提示
export function getDevice(params) {
  return request({
    url: '/steel-arch/client/main/warning',
    params,
  });
}
